#include "sys.h"

void uart_init() {
	SCON = 0x50;		//8???,?????
	AUXR |= 0x01;		//??1?????2???????
	AUXR |= 0x04;		//?????1T??
	T2L = 0xC7;			//???????
	T2H = 0xFE;			//???????
	AUXR |= 0x10;		//???2????
	ES = 1;				//????1??
}


void uart_putStr(uchar *str) {
	do{
		SBUF = *str++;
		while(TI == 0);
		TI = 0;
	} while(*str != 0);
}

